package com.caiden_micheal.dynamic.record.mapper;

import com.caiden_micheal.dynamic.record.domain.DProcessRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DProcessRecordMapper {

    @Select("SELECT * FROM sys_dynamic_process_record WHERE process_id=#{id} AND processor_username is NOT null ORDER BY `received_time`,`id`")
    List<DProcessRecord> findByProcessIdHasPerson(Long id);
}
